﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Abp.Application.Services;
using Abp.Domain.Repositories;

namespace XHD.WXZJ.Posts
{
   public class PostAppService:ApplicationService, IPostAppService
    {
       private readonly IRepository<Post,int> _postRepository; 
       public PostAppService(IRepository<Post, int> postRepository)
       {
           _postRepository = postRepository;
       }

       public IList<Post> GetAllPosts()
       {
           return _postRepository.GetAllList();
       } 
    }
}
